Skip to content

NO-ISSUE: Fix form param keys for openapi-generator#823

Draft
mokuzon wants to merge 3 commits into
masterfrom
users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params
Draft

NO-ISSUE: Fix form param keys for openapi-generator#823
mokuzon wants to merge 3 commits into
masterfrom
users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params

Conversation

@mokuzon

@mokuzon mokuzon commented Apr 21, 2026

Copy link
Copy Markdown

resolve #810

Summary

  • openapi-generator 7.21.0 changed the PHP api.mustache template to use {{paramName}} (camelCase) as form data keys in FormDataProcessor::prepare(), instead of {{baseName}} (snake_case)
  • This causes incorrect request bodies (e.g. grantType=client_credentials instead of grant_type=client_credentials), breaking all form-based endpoints
  • Add a custom api.mustache override with a single-line fix: '{{baseName}}' instead of '{{paramName}}'

Test plan

  • Ran python generate-code.py with 7.21.0 locally and check diff of auto generated codes
  • All 23 tests pass (674 assertions), including the previously failing issueStatelessChannelToken tests

@mokuzon mokuzon marked this pull request as draft April 21, 2026 06:28
@renovate renovate Bot force-pushed the renovate/openapi-generator-version branch from 6d2ab46 to 610fd0b Compare April 27, 2026 05:23
@renovate renovate Bot force-pushed the renovate/openapi-generator-version branch from 610fd0b to f9ebe70 Compare May 5, 2026 11:34
Base automatically changed from renovate/openapi-generator-version to master May 5, 2026 11:38
@mokuzon mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params branch 2 times, most recently from cec5fc7 to eb1e4bf Compare May 19, 2026 05:36
@mokuzon mokuzon changed the title NO-ISSUE: Fix form param keys for openapi-generator 7.21.0 NO-ISSUE: Fix form param keys for openapi-generator May 19, 2026
@mokuzon mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params branch 5 times, most recently from ea77e56 to 541b70a Compare May 19, 2026 06:08
@mokuzon mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params branch from 6ff5597 to 6dd83ae Compare June 3, 2026 04:11
@mokuzon mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params branch from 6dd83ae to da7f595 Compare June 3, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants